package com.lms.service.impl;

import com.lms.bean.Permission;
import com.lms.dao.PermissionDao;
import com.lms.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImp implements PermissionService {
    @Autowired
    private PermissionDao permissionDao;
    @Override
    public List<Permission> findAll() {
        return permissionDao.findAll();
    }

    @Override
    public Permission findById(Long s) {
        return permissionDao.getOne(s);
    }
}
